package com.ruoyi.binance.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 15分钟实时MACD数据对象 binance_15macd
 *
 * @author zq
 * @date 2025-10-17
 */
public class Binance15macd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 代码 */
    private String code;

    /** 数据时间 */
    private Date time;

    /** BAR值 */
    @Excel(name = "BAR值")
    private BigDecimal bar;

    /** EMA12值 */
    @Excel(name = "EMA12值")
    private BigDecimal ema12;

    /** EMA26值 */
    @Excel(name = "EMA26值")
    private BigDecimal ema26;

    /** DIF值 */
    @Excel(name = "DIF值")
    private BigDecimal dif;

    /** DEA值 */
    @Excel(name = "DEA值")
    private BigDecimal dea;

    /** 收盘时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收盘时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closeTime;

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    public void setBar(BigDecimal bar)
    {
        this.bar = bar;
    }

    public BigDecimal getBar()
    {
        return bar;
    }

    public void setEma12(BigDecimal ema12)
    {
        this.ema12 = ema12;
    }

    public BigDecimal getEma12()
    {
        return ema12;
    }

    public void setEma26(BigDecimal ema26)
    {
        this.ema26 = ema26;
    }

    public BigDecimal getEma26()
    {
        return ema26;
    }

    public void setDif(BigDecimal dif)
    {
        this.dif = dif;
    }

    public BigDecimal getDif()
    {
        return dif;
    }

    public void setDea(BigDecimal dea)
    {
        this.dea = dea;
    }

    public BigDecimal getDea()
    {
        return dea;
    }

    public void setCloseTime(Date closeTime)
    {
        this.closeTime = closeTime;
    }

    public Date getCloseTime()
    {
        return closeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("code", getCode())
                .append("time", getTime())
                .append("bar", getBar())
                .append("ema12", getEma12())
                .append("ema26", getEma26())
                .append("dif", getDif())
                .append("dea", getDea())
                .append("closeTime", getCloseTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
